﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Lamex.Library
{
    public partial class frmWebForm : frmBaseChild
    {
        WebBrowser web = null;
        public frmWebForm(string urlName,string formName)
        {
            InitializeComponent();
            DevExpress.XtraEditors.PanelControl mainPanel = new DevExpress.XtraEditors.PanelControl();
            web = new WebBrowser();
            web.Url = new System.Uri(urlName);
            web.Dock = DockStyle.Fill;
            mainPanel.Dock = DockStyle.Fill;
            mainPanel.Controls.Add(web);
            this.Controls.Add(mainPanel);
            this.Text = formName;
        }
    }
}
